package sgi.message;

import java.util.Calendar;
import java.util.Date;


public class MessageCreateReport extends Message {
	
	private static final int COMPLAINT_REPORT = 0;
	private static final int DATABASE_REPORT = 1;
	private static final int PACKAGE_REPORT = 2;
	
	private int reportType;
	private Date date;
	public Boolean reportCreated;
	//private String GenQuery; //query for generating the report

	@SuppressWarnings("deprecation")
	public MessageCreateReport(int reportType) {//, Date date) {
		super(null);
		//super(chooseMessageType(reportType, year, month));
		this.reportType = reportType;
		//chooseGenQuery(this.reportType);
		reportCreated=false;
		this.date = new Date();
		this.date.setYear(date.getYear()-1900);
		this.date.setMonth(date.getMonth()-1);
		this.date.setDate(date.getDate());
		
		// TODO Auto-generated constructor stub
	}

	/*private static String chooseMessageType(int reportType, int year, int month) {
		
		if (reportType == COMPLAINT_REPORT)
			return "";
		else if (reportType == DATABASE_REPORT)
			return "";
		else if (reportType == PACKAGE_REPORT)
			return "";
		else
			return "";
	}*/
	
	
	public int getReportType() {	
		return this.reportType;
	}
	
	public Date getDate() {
		return this.date;
	}
}
